In part 6 of the app widget tutorial, we will learn how to update adapter-based collection widgets. For this we have to call notifyAppWidgetViewDataChanged on the AppWidgetManager, which then triggers the onDataSetChanged method in the RemoteViewsFactory class in the RemoteViewsService. In this method we can do long running operations like database and network calls synchronously, because we will just see a loading view while the data is being fetched. Watch the whole playlist: https://www.youtube.com/playlist?list=PLrnPJCHvNZuDCoET8jL2VK4YVRNhVEy0K Example code for this part: https://gist.github.com/codinginflow/6f9390545dfc414f1580c69778689e7e ____________________ ⌨️ Watch me code LIVE on Twitch: https://www.twitch.tv/florianwalther 📺 Watch all my previous Twitch streams: https://www.youtube.com/channel/UCoAYgiwLuKgHbBHs7V6bc9w?sub_confirmation=1 ⭐ Get my MVVM Caching Course now: https://codinginflow.com/caching 📱 Check out my apps: https://codinginflow.com/apps ❗ Subscribe to the channel: https://www.youtube.com/c/codinginflow?sub_confirmation=1 💲 Earn money by becoming an affiliate for my courses: https://codinginflow.com/affiliate 📨 Subscribe to the Coding in Flow newsletter: https://codinginflow.com/newsletter 💻 Hire me for your next project: https://codinginflow.com/contact 💚 Donate to Coding in Flow with a message: https://paypal.me/codinginflow ❓ Ask your programming questions in our chat: https://discord.gg/TSnMvmc 📣 Follow Coding in Flow on other sites: Facebook: https://www.facebook.com/codinginflow Instagram: https://www.instagram.com/codinginflow TikTok: https://www.tiktok.com/@codinginflow Twitter: https://twitter.com/codinginflow Github: https://github.com/codinginflow 💰 Business requests, sponsoring, etc.: info@codinginflow.com